# from rest_framework.serializers import ModelSerializer
#
# from apps.spit.models import User, Label, Question, Reply, Recruit, Article, Enterprise
#
#
# class LabelSerializer(ModelSerializer):
#     class Meta:
#         model = Label
#         fields = '__all__'
#
#
# class QuestionSerializer(ModelSerializer):
#     class Meta:
#         model = Question
#         fields = '__all__'
#
#
# class ReplySerializer(ModelSerializer):
#     class Meta:
#         model = Reply
#         fields = '__all__'
#
#
# class RecruitSerializer(ModelSerializer):
#     class Meta:
#         model = Recruit
#         fields = '__all__'
#
#
# class EnterpriseSerializer(ModelSerializer):
#     recruits = RecruitSerializer()
#
#     class Meta:
#         model = Enterprise
#         fields = '__all__'
#
#
# class ArticleSerializer(ModelSerializer):
#     class Meta:
#         model = Article
#         fields = '__all__'
#
#
# class UserSerializer(ModelSerializer):
#     # labels = LabelSerializer(many=True)
#     # questions = QuestionSerializer(many=True)
#     # answer_question = ReplySerializer(many=True)
#     # collected_articles = ArticleSerializer(many=True)
#     # enterpises = EnterpriseSerializer(many=True)
#
#     class Meta:
#         model = User
#         fields = '__all__'
